import request from '@/utils/request'
import { checkStudentId } from '@/utils/checkRule'

export function getEnterClassInfo(
  studentId: string,
  stuName: string,
  className: string,
  pageSize: number,
  page: number
) {
  return request({
    url:
      '/admin/getEnterClassInfo?studentId=' +
      studentId +
      '&stuName=' +
      stuName +
      '&className=' +
      className +
      '&pageSize=' +
      pageSize +
      '&page=' +
      page,
    method: 'get'
  })
}

export function deleteStudentInfo(studentId: string) {
  return request({
    url: '/admin/deleteStudent/' + studentId,
    method: 'delete'
  })
}

export function ExportEnterInfo(className: string) {
  return request({
    url: '/admin/export/enterTable?className=' + className,
    method: 'get',
    responseType: 'blob'
  })
}
